/* eslint-disable no-unused-vars */
import React, { useEffect, useState } from "react";
import styles from './card.module.css'


/** 公共卡片组件 */
export default function Card({ title, style, children }) {

    useEffect(() => {

        return () => {
        }
    }, [])

    return (
        <div className={styles.cardRoot} style={{ ...style }}>
            {/* 标题 */}
            <div className={styles.cardTitle}>{title}</div>
            {/* 内容区域 */}
            <div className={styles.cardContent}>
                {children}
            </div>
        </div>
    )
}